package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 泥浆泵顶替-录井实测数据 对应表 CM_MUDPUMP_LOG_DATA
@Table(name = "CM_MUDPUMP_LOG_DATA")
public class CM_MudpumpLogData extends BABaseEntity{
    @Id
    @GenericGenerator(name="mudLogDataGenerator", strategy="uuid")
    @GeneratedValue(generator="mudLogDataGenerator")
    @Column(name = "CM_MUDPUMP_LOG_DATA_ID")
    private String CM_MudpumpLogData_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "CYCLETIME")
    private Double cycleTime;

    @Basic
    @Column(name = "RETURNDISPLACEMENT")
    private Double returnDisplacement;

    @Basic
    @Column(name = "PUMPPRESSURE")
    private Double pumpPressure;

    @Basic
    @Column(name = "INTEMPERATURE")
    private Double inTemperature;

    @Basic
    @Column(name = "OUTTEMPERATURE")
    private Double outTemperature;

    @Basic
    @Column(name = "BOOSTPUMPPRESSURE")
    private Double boostPumpPressure;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
